import request from '@/utils/request'

// 查询期票承兑信息列表
export function listPromissory(query) {
  return request({
    url: '/project/promissory/list',
    method: 'get',
    params: query
  })
}


// 查询期票承兑信息列表
export function revokeList(query) {
  return request({
    url: '/project/promissory/revokeList',
    method: 'get',
    params: query
  })
}



export function getResult(query) {
  return request({
    url: '/project/promissory/getResult',
    method: 'get',
    params: query
  })
}


// 查询期票承兑统计列表
export function listPromissoryData(query) {
  return request({
    url: '/project/promissory/listData',
    method: 'get',
    params: query
  })
}

// 查询期票承兑信息详细
export function getPromissory(id) {
  return request({
    url: '/project/promissory/' + id,
    method: 'get'
  })
}

// 新增期票承兑信息
export function addPromissory(data) {
  return request({
    url: '/project/promissory',
    method: 'post',
    data: data
  })
}

// 修改期票承兑信息
export function updatePromissory(data) {
  return request({
    url: '/project/promissory',
    method: 'put',
    data: data
  })
}

// 删除期票承兑信息
export function delPromissory(id) {
  return request({
    url: '/project/promissory/' + id,
    method: 'delete'
  })
}
